import React, { Component } from "react";
import { BrowserRouter as Router, Route } from "react-router-dom";
import ReactDom from "react-dom";
import Test1 from "./test1";
import Test2 from "./test2";

class App extends Component {
  render() {
    return (
      <div>
        <Router>
          <Route path="/" component={Test1} />
          <Route path="/test" component={Test2} />
        </Router>
      </div>
    );
  }
}

ReactDom.render(<App />, document.getElementById("root"));
